package com.sdp.th.db.th_emp.service.impl;

import com.sdp.th.entity.ThEmp;
import com.sdp.th.db.th_emp.mapper.ThEmpMapper;
import com.sdp.th.db.th_emp.service.IThEmpService;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 人员信息 服务实现类
 * </p>
 *
 * @author zsp
 * @since 2025-04-12
 */
@Service
public class ThEmpServiceImpl extends ServiceImpl<ThEmpMapper, ThEmp> implements IThEmpService {

	@Override
	public ThEmp queryEmpByEmpNo(String empNo) {
		LambdaQueryWrapper<ThEmp> lambdaQueryWrapper = new LambdaQueryWrapper<>();
		lambdaQueryWrapper.eq(ThEmp::getEmpNo, empNo);
		return getOne(lambdaQueryWrapper,false);
	}

}
